package com.muyu.system.domain;

import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 20f78265-fd98-4840-8d92-e6605ec424f8对象 danmo_shopping_products_collection
 *
 * @author yangle
 * @date 2024-10-09
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DanmoShoppingProductsCollection extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 收藏记录的唯一标识符 */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long goodsId;

    /** 商品信息 */
    private List<DanmoShoppingProducts> danmoShoppingProductsList;


    private DmShoppingGoods dmShoppingGoods;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("goodsId", getGoodsId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("danmoShoppingProductsList", getDanmoShoppingProductsList())
            .toString();
    }
}
